package com.jucai.pppeiyouclient;

import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.CheckBox;

import com.jucai.pppeiyouclient.base.BaseActivity;
import com.jucai.pppeiyouclient.weidget.taglayout.TagLayout;

public class TagActivity extends BaseActivity {
    private TagLayout tagLayout;
    private String[] mData = new String[]{"QQ",
            "视频",
            "电子书",
            "酒店",
            "网游",
            "播放器",
            "机票",
            "游戏",
            "浏览器",
            "单机游戏",
            "旅游",
            "壁纸",
            "锁屏",
            "装机必备",
            "备份",
            "网盘",
            "爱奇艺视频",
            "腾讯手机管家",
            "百度地图",
            "谷歌地图",
            "微信支付",
            "支付宝钱包"};

    boolean[] cbStatus = new boolean[mData.length];

    @Override
    protected void initView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_tag);
        tagLayout = (TagLayout) findViewById(R.id.tag_layout);

        for (int i = 0; i < mData.length; i++) {
            cbStatus[i] = false;
        }

        for (int i = 0; i < mData.length; i++) {

            CheckBox view = new CheckBox(TagActivity.this);
            view.setText(mData[i]);
            view.setTextColor(Color.BLACK);
            view.setPadding(5, 5, 5, 5);
            view.setTextSize(14);
            view.setGravity(Gravity.CENTER);

            tagLayout.addView(view);
        }
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void loadNetData() {

    }

    @Override
    protected void setListener() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {

        }
    }
}
